﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace mesoBoard.Data
{
    public interface IBBCodeValidation
    {
        [Required(ErrorMessage="Enter a tag name")]
        string Tag { get; set; }

        [Required(ErrorMessage = "Enter a parse value")]
        string Parse { get; set; }

        [Required(ErrorMessage = "Enter a pattern")]
        string Pattern { get; set; }
    }


    [MetadataType(typeof(IBBCodeValidation))]
    public partial class BBCode : IBBCodeValidation { } 


}
